class SingleTon {
    private static instance: SingleTon | null = null
    
    private constructor() {

    }

    public static getInstance():SingleTon {
        if (this.instance === null) {
            this.instance = new SingleTon()
        }
        
        return this.instance
    }
    getName() {
        
    }
}

let s1 = SingleTon.getInstance()
let s2 = SingleTon.getInstance()